package top.happyone.security.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import tk.mybatis.spring.annotation.MapperScan;

import java.security.Principal;

/**
 *  1.扮演角色： 服务提供商，类似于qq，微信
 *  2.client认证客户端: 确定是哪个应用在请求
 *  3.basic认证用户: 确定是哪个用户在授权
 *
 *  resourceServer: 用户资源服务器， 验证token后可以获取资源
 */
@MapperScan("top.happyone.security.demo.**.mapper")
@SpringBootApplication
public class AuthorizationServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthorizationServerApplication.class, args);
    }

}
